package main

import "fmt"

func main() {
	//确保用make来创建map
	studentsAge := make(map[string]int)
	studentsAge["john"] = 32
	studentsAge["bob"] = 31
	fmt.Println(studentsAge)

	// var studentsAge map[string]int
	// studentsAge["john"] = 32
	// studentsAge["bob"] = 31
	// fmt.Println(studentsAge)

	fmt.Println(studentsAge["bob"])
}
